package com.xujiang.imitationcompanypj.data.net;

import com.xujiang.imitationcompanypj.data.model.AccessToken;
import com.xujiang.imitationcompanypj.data.model.Login;

import retrofit2.http.Body;
import retrofit2.http.Header;
import retrofit2.http.POST;
import rx.Observable;

/**
 * Created by xujiang on 2017/4/5.
 */

public interface UserService {
    @POST("/login")
    Observable<AccessToken> login (@Header("account") String account,
                                   @Header("password") String password,
                                   @Body Login login);
}
